//
//  MSViewController.h
//  OrderingMerchantsSide
//
//  Created by iOS on 2018/9/19.
//  Copyright © 2018年 mls. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MSNavigationBar.h"

NS_ASSUME_NONNULL_BEGIN

@protocol MSViewModelProtocol;
@protocol MSViewControllerProtocol <NSObject>

@optional
- (instancetype)initWithViewModel:(id <MSViewModelProtocol>)viewModel;

- (void)ms_bindViewModel;
- (void)ms_addSubviews;

@end

@interface MSViewController : UIViewController <MSViewControllerProtocol>

@property (nonatomic, strong) AppDelegate       *appDelegate;
@property (nonatomic, strong) MSNavigationBar   *navBar;

/** 返回上一页 */
- (void)popLastPage;
/** show HUD */
- (void)showHudWithMessage:(NSString *)message
                      mode:(MBProgressHUDMode)mode
                  autoHide:(BOOL)autoHide;
/** hide HUD */
- (void)hideHud;
/** 打电话 */
- (void)callPhoneStr:(NSString*)phoneStr;

@end

NS_ASSUME_NONNULL_END
